<?php

    require_once($config['app_dir'].'/includes/db.class.php');

class objPolls {
	var $userName;
	var $cid;

	var $multiplier = 137;
	var $addon = 13;

	function __construct() {
      	$this->db = objDataBase::GetInstance();//new objDataBase();
   } //constructor


   public function decodeUsername($cid) {
        $username = ($cid/$this->multiplier)-$this->addon;
        return $username;
   } //decodeUsername

   public function encodeUsername() {
        $cid = ($this->userName+$this->addon)*$this->multiplier;
        return $cid;
   } //encodeUsername




}






?>